package com.kim.smartring.application;

import com.kim.smartring.ble.BleWrapper;
import com.kim.smartring.service.LocationService;

import android.app.Application;
import android.content.Context;
import android.content.Intent;

public class SmartRingApplication extends Application {

	public static Context CONTEXT;
	private BleWrapper mBleWrapper;
	private String mDeviceAddress;

	@Override
	public void onCreate() {
		super.onCreate();
		CONTEXT = this;

		// startLocationService();
	}

	/**
	 * 开启定位服务
	 */
	private void startLocationService() {
		Intent intent = new Intent(this, LocationService.class);
		startService(intent);
	}

	public BleWrapper getmBleWrapper() {
		return mBleWrapper;
	}

	public void setmBleWrapper(BleWrapper mBleWrapper) {
		this.mBleWrapper = mBleWrapper;
	}

	public String getmDeviceAddress() {
		return mDeviceAddress;
	}

	public void setmDeviceAddress(String mDeviceAddress) {
		this.mDeviceAddress = mDeviceAddress;
	}

}
